package com.genexususa.eo.google.test.account;

import com.genexususa.eo.google.connection.AccountManager;
import com.genexususa.eo.google.test.Constants;

/**
 * Created with IntelliJ IDEA.
 * User: Emiliano Martinez
 * Date: 7/11/14
 * Time: 12:20 PM
 * To change this template use File | Settings | File Templates.
 */
public class ConsumeCreateAccount {

    public static void main(String[] args){

        String xml = "<GA_AccountCollection xmlns=\"L2TMediaTrunk\">\n" +
                "       <GA_Account xmlns=\"L2TMediaTrunk\">\n" +
                "              <Id>0</Id>\n" +
                "              <AccountGxId>373</AccountGxId>\n" +
                "              <Name>" + "Test Account Diego 1" + "</Name>\n" +
                "              <CurrencyCode>" + Constants.currencyUSD + "</CurrencyCode>\n" +
                "              <DateTimeZone>" + Constants.dateTimeChicago + "</DateTimeZone>\n" +
                "       </GA_Account>\n" +
                "</GA_AccountCollection>\n";

        AccountManager am = new AccountManager();
        am.SetClientId(Constants.MCCTest);
        String res = am.CreateAccount(xml);
        am.Finalize();
        System.out.println(res);
    }
}
